package com.org.javabody.switchcase;

/**
 * Created by Administrator on 2017-03-30.
 */
public enum  SwitchCaseDemo {
     A,B,C,D,E;
    public static void returnString(SwitchCaseDemo str) {
       switch (str)
       {
           case A:System.out.println("A"); break;
           case B:System.out.println("B"); break;
           default:System.out.println("其他"); break;
       }
    }

    public static void main(String[] args) {
        returnString(SwitchCaseDemo.B);
    }
}
